package io.eleKing.boot.system.entity;

import com.baomidou.mybatisplus.annotation.*;
import lombok.Data;

import java.io.Serializable;
import java.util.Date;

/**
 * &#064;@author: luka
 * &#064;@date: 2025/4/13 22:01
 * &#064;@description:  默认
 **/
@Data
public class BaseEntity implements Serializable {

    private static final long serialVersionUID = 1L;

    // @Schema(description = "主键")
    @TableId(value = "id", type = IdType.ASSIGN_ID)
    private Long id;

    // @Schema(description = "状态 1：正常，0：禁用")
    private Boolean status;

    // @Schema(description = "备注")
    private String remark;

    // @Schema(description = "创建人ID")
    @TableField(fill = FieldFill.INSERT)
    private Long createUser;

    // @Schema(description = "创建时间")
    @TableField(fill = FieldFill.INSERT)
    private Date createTime;

    // @Schema(description = "修改人ID")
    @TableField(fill = FieldFill.UPDATE)
    private Long updateUser;

    // @Schema(description = "修改时间")
    @TableField(fill = FieldFill.UPDATE)
    private Date updateTime;

    @TableLogic(value = "0", delval = "1")
    private Integer isDeleted;

}
